<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<jsp:include page="/all/base.jsp" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>登陆</title>
<style type="text/css">
div.error {
	border: 2px solid red;
	background-color: yellow;
	text-align: center;
	heigth: 20px;
}

div.hide {
	display: none;
}

input.l-button {
	width: 60px;
	float: left;
	margin-left: 15px;
	margin-top: 10px;
	margin-left: 15px;
}

input.param-inputext {
	height: 19px;
	margin-top: 3px;
}
</style>
</head>
<body>
<!-- 
<div class="error ${param.error == true ? '' : 'hide'}">登陆失败<br>
${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}</div> -->
${SPRING_SECURITY_LAST_EXCEPTION.message}
<c:remove scope="session" var="SPRING_SECURITY_LAST_EXCEPTION" />
<form action="${contextPath}/j_spring_security_check" method="post">
<h1>登陆${webContext}</h1>
<hr />
<span>用户：</span><input class="param-inputext" type="text"
	name="j_username" ltype="text"
	value="${sessionScope['SPRING_SECURITY_LAST_USERNAME']}"><br />
<span>密码：</span><input class="param-inputext" type="password"
	name="j_password" value="" ltype="text" /><br />
<input type="checkbox" name="_spring_security_remember_me">两周之内不必登陆<br />
<input class="l-button" type="submit" value="登录"> <input
	class="l-button" type="reset" value="重置"></form>
</body>
</html>